home *** CD-ROM | disk | FTP | other *** search
- Path: netnews.ntu.edu.tw!news
- From: antony@public.bta.net.cn (Antony Yandong Chen)
- Newsgroups: comp.lang.c
- Subject: How can I pick out charactors from argv[ ] ?
- Date: Sun, 3 Mar 1996 14:02:34 +800
- Organization: Jardine Office System (JOS)
- Message-ID: <4hbcsh$3do@netnews.ntu.edu.tw>
- NNTP-Posting-Host: @202.96.26.143
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-NewsReader: QNews v0.9b4 Beta 15 Apr 1994 Evaluation copy.
-
- Hi
-
- I got this from a C turtorial book:
-
- main (argc,argv)
- int argc;
- char *argv[];
-
- {
- printf("argc = %d\n",argc);
- printf("argv1 = %s\n",argv[1]);
-
- }
-
- I could execute it OK, but I couldn't be able to pick out single
- charactors from string argv[], anybody can tell me how to make it?
-
- Thanx in advance
- Antony
-
-